
var fs=require('fs'),
EventEmitter=process.EventEmitter,
stdin=process.stdin,
stdout=process.stdout,
myClass=function(){};


var enterPath=new myClass,
 isStrict=new myClass;
 
 myClass.prototype._proto__=EventEmitter.prototype;

//输入项目名称
function enterPro(){

	console.log('');
	stdout.write('\033[33mEnter your project name:\033[39m');
    stdin.resume();
    stdin.setEncoding('utf-8');
    stdin.on('data',project);
}
//输入项目安装路径
enterPath.on('enterPro()',function(){
	console.log('');
	stdout.write('\033[33mEnter your install path:\033[39m');
	stdin.resume();
    stdin.setEncoding('utf-8');
    stdin.on('data',path);
})
	 

//是否启用严格模式
isStrict.on('enterPath',function(){
	console.log('');
    stdout.write('\033[33m open strict type y/n:\033[39m');
	stdin.resume();
    stdin.setEncoding('utf-8');
    stdin.on('data',strict);
})
	
function project(data){
  stdin.pause();
    console.log(data);
}
function path(data){
  stdin.pause();
    console.log(data);
}
function strict(data){
  stdin.pause();
    console.log(data);
}

// module.exports=enterPro;
isStrict.emit();

